package com.hsylient.javase.draftpaper;

import cn.hutool.core.util.ReUtil;

public class UserIdRegular {


    public static void main(String[] args) {
        System.out.println(ReUtil.isMatch("^[0-9]{8}$", "12345678"));
        System.out.println(ReUtil.isMatch("^[0-9]{8}$", "123456700000"));
        System.out.println(ReUtil.isMatch("^[0-9]{8}$", "123456"));
        System.out.println(ReUtil.isMatch("^[0-9]{8}$", "12345"));
        System.out.println(ReUtil.isMatch("^[0-9]{8}$", "1234"));
        System.out.println(ReUtil.isMatch("^[0-9]{8}$", "abcde112314"));
        System.out.println(ReUtil.isMatch("^[0-9]{8}$", "hsylient"));
        System.out.println(ReUtil.isMatch("^[0-9]{8}$", "xxaaarwerw"));
        System.out.println(ReUtil.isMatch("^[0-9]{8}$", null));
        System.out.println(ReUtil.isMatch("^[0-9]{8}$", "xx"));
    }
}
